/**
 * @author Peppe
 * 24/nov/2011
 */

package it.webflora.dao;

import java.util.List;

/**
 * Interfaccia generica con i metodi di CRUD
 * 
 * @author Peppe
 * 
 * @param <E>
 *            Entita
 */

public interface Dao<E> {

    public void insert(E entity);

    public void update(E entity);

    public void delete(E entity);

    public List<E> findAll();

    public E findById(Integer id);
}
